//
//  AddressChooserTableViewCell.m
//  B2C
//
//  Created by 李小龙 on 2017/8/10.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

#import "AddressChooserTableViewCell.h"

@implementation AddressChooserTableViewCell

- (IBAction)selectButtonAction:(id)sender {
    UIButton *button = (UIButton *)sender;
    [button setSelected:YES];
    if (self.block) {
        self.block(button.tag);
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self createUI];
}

- (void)createUI {
    [self.defaultLabel setCircleWithColor:[UIColor ThemeColor] borderWidth:1 cornerRadius:2];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
